package com.wn.cloud.seata.api;

import com.wn.cloud.common.response.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @FileName: AccountService
 * @Description: TODO
 * @Author: MaWenHao
 * @Created: 2020/4/17 - 17:25
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
@FeignClient("seata-account-service")
public interface AccountService {

    @PostMapping("/account/decrease")
    CommonResult decreaseAccount(@RequestParam("userId") long userId, @RequestParam("money") BigDecimal money);
}
